export function setLocalStorage(name: string, value: any) {
    const data: any = JSON.stringify(value)
    localStorage.setItem(name, data)
}

export function getLocalStorage(name: string) {
    const data: any = localStorage.getItem(name)
    return JSON.parse(data)
}

export function clearLocalStorageItem(name: string) {
    localStorage.removeItem(name);
}
